<template>
  <div>
    <p>Home</p>
  </div>
</template>

<script setup>


const router = useRouter()
const route = useRoute()

console.log(router); //相当于 this.$router
console.log(route) ;//相当于 this.$route

const store = useStore()
const count = computed(() => store.state.count)

console.log(count.value)
</script>

<style scoped lang="scss">
div {
  p {
    color: red;
  }
}
</style>
